import os,shutil
import function

dir1="D:/Desk/0312-炳哥尺寸转换/A-原图"
files=function.get_all_names(dir1)
dir2="D:/Desk/0312-炳哥尺寸转换/C#结果/success"
results=function.get_all_names(dir2)

for file in files:
    if file not in results:
        path_old=os.path.join(dir1,file)
        shutil.copy(path_old,os.path.join("D:/Desk/0312-炳哥尺寸转换/C#结果/fail",file))
